<%@ page import="java.util.List" %>
<%@ page import="java.util.Arrays" %>
<%@include file="../public.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: Yzk20
  Date: 2025/6/27
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<title>Title</title>
<head>
    <link rel="stylesheet" type="text/css" href="css/styless.css">
<%--    <link> 标签--%>
<%--    用于建立当前HTML文档与外部资源的关联（如CSS文件、图标等）--%>
<%--    rel="stylesheet" 属性--%>
<%--    声明关联的资源类型为"样式表"，告知浏览器需解析并应用其中的CSS规则。--%>

</head>
<body>
<%
    String id = request.getParameter("Borrowingid");
    String sql = "delete from borrowings where Borrowingid = ?" ;

    List<String> params = Arrays.asList(id);
    dosave(sql,params );
//    连接
    response.sendRedirect("../rent.jsp");
%>
</body>
</html>
